#ifndef TOPWIDGET_H
#define TOPWIDGET_H

#include "sumHeader.h"

class TopWidget:public QWidget
{
    Q_OBJECT
public:
    TopWidget();
    void setText(const QString &textUp,const QString &textLower);
    ~TopWidget();
    const constexpr static int TextUpWIDTH = 80;
    const constexpr static int TextUpHEIGHT = 22;
    const constexpr static int TextLowerWIDTH = 80;
    const constexpr static int TextLowerHEIGHT = 16;

private:
    void paintEvent(QPaintEvent *event) override;

private:
    QString _textUp, _textLower;
};

#endif // TOPWIDGET_H
